package com.ruoyi.base.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 串口设备对象 tarch_cjq
 *
 * @author ruoyi
 * @date 2024-06-03
 */
@Data
@Accessors(chain = true)
public class Device extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * 学校ID
     */
    @Excel(name = "学校ID")
    @ApiModelProperty("学校ID")
    @JsonProperty("pId")
    private String pId;

    /**
     * 学校名称
     */
    @Excel(name = "学校名称")
    @ApiModelProperty("学校名称")
    private String schoolName;

    /**
     * 设备编号
     */
    @Excel(name = "设备编号")
    @ApiModelProperty("设备编号")
    private String cjqNo;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String cjqProtoId;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long online;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long delFlag;

    /**
     * 楼座ID
     */
    @Excel(name = "楼座ID")
    @ApiModelProperty("楼座ID")
    private String buildId;

    /**
     * 楼座名称
     */
    @Excel(name = "楼座名称")
    @ApiModelProperty("楼座名称")
    private String buildName;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("pId", getPId())
                .append("cjqNo", getCjqNo())
                .append("cjqProtoId", getCjqProtoId())
                .append("online", getOnline())
                .append("delFlag", getDelFlag())
                .append("remark", getRemark())
                .append("buildId", getBuildId())
                .toString();
    }
}
